﻿using UnityEngine;
using System.Collections;

public class Collisions : MonoBehaviour 
{
	void OnTriggerEnter(Collider _bam)
	{	
		if (_bam.gameObject.name == "Enemy")
		{
			Destroy(_bam.gameObject);
			Destroy (gameObject);
			Debug.Log("whatever");
		}
		if (_bam.gameObject.name == "Bateau") 
		{
			Debug.Log ("boobs");
			Destroy (gameObject);	
		}
	}
}
